const Layout = () => import("@/layout/index.vue")

export default [
  {
    name: 'Dashboard',
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/analysis',
    meta: {
      title: 'Dashboard',
      icon: 'ion:grid-outline',
    },
    children: [
      {
        name: 'analysis',
        path: 'analysis',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '首页',
          icon: 'ion:settings-outline',
          affix: true,
        },
      },
      {
        name: 'fullscreen',
        path: 'fullscreen',
        component: () => import('@/views/fullscreen/index.vue'),
        meta: {
          title: 'FullScreen',
          icon: 'ion:settings-outline',
        },
      },
    ],
  },

  {
    name: 'ErrorPage',
    path: '/error-page',
    component: Layout,
    redirect: '/error-page/404',
    meta: {
      title: '错误页',
      // icon: IconAlert,
      icon: 'ion:layers-outline',
    },
    children: [
      {
        name: 'ERROR-404',
        path: '404',
        component: () => import('@/views/error-page/404.vue'),
        meta: {
          title: '404',
          // icon: IconAlert,
        },
      },
      {
        name: 'ERROR-403',
        path: '403',
        component: () => import('@/views/error-page/403.vue'),
        meta: {
          title: '403',
          // icon: IconAlert,
        },
      },
      {
        name: 'ERROR-500',
        path: '500',
        component: () => import('@/views/error-page/500.vue'),
        meta: {
          title: '500',
          // icon: IconAlert,
        },
      }
    ],
  },
  {
    name: 'ExternalLink',
    path: '/external-link',
    component: Layout,
    meta: {
      title: '外部链接',
      // icon: IconLink,
      icon: 'mdi:form-select',
    },
    children: [
      {
        name: 'LinkGithubSrc',
        path: 'https://github.com/zclzone/vue-naive-admin',
        meta: {
          title: '源码 - github',
          // icon: IconGithub,
        },
      },
      {
        name: 'LinkGiteeSrc',
        path: 'https://gitee.com/zclzone/vue-naive-admin',
        meta: {
          title: '源码 - gitee',
          // icon: IconGitee,
        },
      },
      {
        name: 'LinkDocs',
        path: 'https://zclzone.github.io/vue-naive-admin-docs',
        meta: {
          title: '文档 - vuepress',
          // icon: IconVue,
        },
      },
    ],
  },
];
